package com.tom.baseComponent;

import com.tom.baseComponent.service.IUserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 基础组件测试类
 *
 * @author zx
 * @date 2024-08-31 12:10
 */
public class BaseComponentMainTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        IUserService userService = context.getBean(IUserService.class);
        userService.showName();
    }
}
